import ApproveRequestDetailComp from "containers/request/base-request-detail";
import ApproveExpenseReportDetailComp from "containers/expense-report/base-expense-report-detail";

import ApproveComp from "containers/approve/approve";
import ApproveLoanDetailComp from "containers/loan-billing/loan-detail";
import ApproveRequestQuickView from "containers/approve/request/approve-request-quick-view";
import ApproveOtherDetailComp from "containers/approve/other/other-detail";


//审批
const approve = {
  key:'approve',
  icon: 'bars',
  company: true,
  url: '/main/approve/:entityType/:submitType',
  fpItem: ['approval.web.disabled'],
  fpValue: [[false, undefined]],
  components: ApproveComp,
  children: {
    requestDetail: {
      key: 'approve-request-detail',
      url: '/main/approve/approve-request/approve-request-detail/:formOID/:applicationOID',
      components: ApproveRequestDetailComp,
      parent: 'approve'
    },
    quickView: {
      key: 'approve-request-quick-view',
      url: '/main/approve/approve-request/approve-request-quick-view',
      components: ApproveRequestQuickView,
      parent: 'approve',
      children: {
        requestDetail: {
          key: 'approve-request-detail',
          url: '/main/approve/approve-request/approve-request-detail/:formOID/:applicationOID',
          components: ApproveRequestDetailComp,
          parent: 'approve-request-quick-view'
        },
        loanDetail: {
          key: 'approve-loan-detail',
          url: '/main/approve/approve-loan/approve-loan-detail/:formOID/:loanBillOID/:backType',
          components: ApproveLoanDetailComp,
          parent: 'approve-request-quick-view'
        },
        expenseDetail: {
          key: 'approve-expense-report-detail',
          url: '/main/approve/approve-expense-report/approve-expense-report-detail/:expenseReportOID',
          components: ApproveExpenseReportDetailComp,
          parent: 'approve-request-quick-view'
        },
        otherDetail: {
          key: 'approve-other-detail',
          url:'/main/approve/approve-other/approve-other-detail/:formOID/:entityOID/:backType',
          components: ApproveOtherDetailComp,
          parent: 'approve-request-quick-view'
        }
      }
    },
    loanDetail: {
      key: 'approve-loan-detail',
      url: '/main/approve/approve-loan/approve-loan-detail/:formOID/:loanBillOID/:backType',
      components: ApproveLoanDetailComp,
      parent: 'approve'
    },
    expenseDetail: {
      key: 'approve-expense-report-detail',
      url: '/main/approve/approve-expense-report/approve-expense-report-detail/:expenseReportOID',
      components: ApproveExpenseReportDetailComp,
      parent: 'approve'
    },
    otherDetail: {
      key: 'approve-other-detail',
      url:'/main/approve/approve-other/approve-other-detail/:formOID/:entityOID/:backType',
      components: ApproveOtherDetailComp,
      parent: 'approve'
    }
  }
  // subMenu: [
  //   //合同
  //
  //   //预算日记账审核
  //
  //   //申请单审批
  //   {
  //     key:'approve-request',
  //     url:'/main/approve/approve-request',
  //     components: ApproveRequestComp ,
  //     parent: 'approve',
  //     fpItem: ['ca.opt.approval.web.disabled'],
  //     fpValue: [[false, undefined]],
  //     children: {
  //       requestDetail: {
  //         key: 'approve-request-detail',
  //         url:'/main/approve/approve-request/approve-request-detail/:formOID/:applicationOID',
  //         components: ApproveRequestDetailComp ,
  //         parent: 'approve-request'
  //       },
  //       quickView: {
  //         key: 'approve-request-quick-view',
  //         url:'/main/approve/approve-request/approve-request-quick-view',
  //         components: ApproveRequestQuickView ,
  //         parent: 'approve-request',
  //         children: {
  //           requestDetail: {
  //             key: 'approve-request-detail',
  //             url: '/main/approve/approve-request/approve-request-detail/:formOID/:applicationOID',
  //             components: ApproveRequestDetailComp,
  //             parent: 'approve-request-quick-view'
  //           }
  //         }
  //       }
  //     }
  //   },
  //   //借款单审批
  //   {
  //     key:'approve-loan',
  //     url:'/main/approve/approve-loan',
  //     components: ApproveLoanComp,
  //     parent: 'approve',
  //     children: {
  //       requestDetail: {
  //         key: 'approve-loan-detail',
  //         url:'/main/approve/approve-loan/approve-loan-detail/:formOID/:loanBillOID/:backType',
  //         components: ApproveLoanDetailComp,
  //         parent: 'approve-loan'
  //       },
  //       quickView: {
  //         key: 'approve-loan-quick-view',
  //         url:'/main/approve/approve-loan/approve-loan-quick-view',
  //         components: ApproveLoanQuickView,
  //         parent: 'approve-loan',
  //         children: {
  //           requestDetail: {
  //             key: 'approve-loan-detail',
  //             url: '/main/approve/approve-loan/approve-loan-detail/:formOID/:loanBillOID/:backType',
  //             components: ApproveLoanDetailComp,
  //             parent: 'approve-loan-quick-view'
  //           }
  //         }
  //       }
  //     }
  //   },
  //   //报销单审批
  //   {
  //     key:'approve-expense-report',
  //     url:'/main/approve/approve-expense-report',
  //     components: ApproveExpenseReportComp ,
  //     parent: 'approve',
  //     fpItem: ['er.opt.approval.disabled'],
  //     fpValue: [[false, undefined]],
  //     children: {
  //       requestDetail: {
  //         key: 'approve-expense-report-detail',
  //         url: '/main/approve/approve-expense-report/approve-expense-report-detail/:expenseReportOID',
  //         components: ApproveExpenseReportDetailComp ,
  //         parent: 'approve-expense-report'
  //       },
  //       requestQuickView: {
  //         key: 'approve-expense-report-quick-view',
  //         url:'/main/approve/approve-expense-report/approve-expense-report-quick-view',
  //         components: ApproveExpenseReportQuickView ,
  //         parent: 'approve-expense-report',
  //         children: {
  //           requestDetail: {
  //             key: 'approve-expense-report-detail',
  //             url: '/main/approve/approve-expense-report/approve-expense-report-detail/:expenseReportOID',
  //             components: ApproveExpenseReportDetailComp ,
  //             parent: 'approve-expense-report-quick-view'
  //           }
  //         }
  //       }
  //     }
  //   },
  //   //其他审批
  //   {
  //     key:'approve-other',
  //     url:'/main/approve/approve-other',
  //     components: ApproveOtherComp,
  //     parent: 'approve',
  //     children: {
  //       requestDetail: {
  //         key: 'approve-other-detail',
  //         url:'/main/approve/approve-other/approve-other-detail/:formOID/:entityOID/:backType',
  //         components: ApproveOtherDetailComp,
  //         parent: 'approve-loan'
  //       },
  //       quickView: {
  //         key: 'approve-other-quick-view',
  //         url:'/main/approve/approve-other/approve-other-quick-view',
  //         components: ApproveOtherQuickView,
  //         parent: 'approve-other',
  //         children: {
  //           requestDetail: {
  //             key: 'approve-other-detail',
  //             url: '/main/approve/approve-other/approve-other-detail/:formOID/:entityOID/:backType',
  //             components: ApproveOtherDetailComp,
  //             parent: 'approve-other-quick-view'
  //           }
  //         }
  //       }
  //     }
  //   },
  //   //退改签审批
  //
  //   //价格审核
  //
  // ]
};

export default approve
